package com.joinlabs.entity;

import java.util.List;

import javax.annotation.Resource;

public class Order {
    private String orderId;

	private String userId;

    private Long zyAid;

    private Long orderState;

    private String orderTime;
    
    private User user;
    
	private List<Orderitem> items;

    public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
    
    public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setItems(List<Orderitem> items) {
		this.items = items;
	}

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Long getZyAid() {
        return zyAid;
    }

    public void setZyAid(Long zyAid) {
        this.zyAid = zyAid;
    }

    public Long getOrderState() {
        return orderState;
    }

    public void setOrderState(Long orderState) {
        this.orderState = orderState;
    }

    public String getOrderTime() {
        return orderTime;
    }

	public List getItems() {
		return items;
	}

	

	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", userId=" + userId + ", zyAid=" + zyAid + ", orderState=" + orderState
				+ ", orderTime=" + orderTime + ", user=" + user + ", items=" + items + "]";
	}
	
	
    
}